#include "GlobalHeader.h"

char* argv[] = {"test",NULL};
char* env[] = {"userName=zhangsan","passwd=123456"};

int main()
{
    //execl("/usr/bin/ls","-a","-l",NULL);
    //execl("./fork","fork",NULL);

    // char *argv[] = {"ls","-a","-l",NULL};
    // execv("/usr/bin/ls",argv);

    // 前一个ls是配置的环境变量
    // execlp("ls","ls","-a","-l",NULL);

    // char *argv[] = {"ls","-a","-l",NULL};
    // execvp("ls",argv);
    
    
    // printf("%x,%x,%x\n",env[0],env[1],argv[0]);
    execve("./test",argv,env);

    //execle("./test","test",NULL,env);
    return 0;
}